/*==============================================================================
SIPP1991数据集分析 - Word报告生成（修正版）
================================================================================

研究目标：
分析401(k)参与对净金融资产的影响，并生成详细的Word报告

作者：Stata ML Course
日期：2025-11-06
==============================================================================*/

clear all
set more off
capture log close

* 创建输出目录
capture mkdir "output/sipp1991"
capture mkdir "output/sipp1991/figures"

* 开始日志记录
log using "output/sipp1991/word_report_generation.log", replace

/*------------------------------------------------------------------------------
第一部分：数据加载和预处理
------------------------------------------------------------------------------*/
use "data/sipp1991.dta", clear

* 设置全局变量
global Y net_tfa
global D e401
global X age inc educ fsize marr twoearn db pira hown

* 数据清理
foreach var of varlist $Y $D $X {
    drop if missing(`var')
}

* 保存样本量
quietly count
local total_obs = r(N)

/*------------------------------------------------------------------------------
第二部分：描述性统计
------------------------------------------------------------------------------*/
* 全样本描述性统计
quietly {
    summarize net_tfa
    local nfa_n = r(N)
    local nfa_mean = r(mean)
    local nfa_sd = r(sd)
    local nfa_min = r(min)
    local nfa_max = r(max)
    local nfa_p50 = r(p50)

    summarize e401
    local e401_n = r(N)
    local e401_mean = r(mean)
    local e401_sd = r(sd)
    local e401_min = r(min)
    local e401_max = r(max)

    summarize age
    local age_n = r(N)
    local age_mean = r(mean)
    local age_sd = r(sd)
    local age_min = r(min)
    local age_max = r(max)

    summarize inc
    local inc_n = r(N)
    local inc_mean = r(mean)
    local inc_sd = r(sd)
    local inc_min = r(min)
    local inc_max = r(max)

    summarize educ
    local educ_n = r(N)
    local educ_mean = r(mean)
    local educ_sd = r(sd)
    local educ_min = r(min)
    local educ_max = r(max)

    summarize fsize
    local fsize_n = r(N)
    local fsize_mean = r(mean)
    local fsize_sd = r(sd)
    local fsize_min = r(min)
    local fsize_max = r(max)
    
    summarize marr
    local marr_mean = r(mean)
    
    summarize twoearn
    local twoearn_mean = r(mean)
    
    summarize db
    local db_mean = r(mean)
    
    summarize pira
    local pira_mean = r(mean)
    
    summarize hown
    local hown_mean = r(mean)
}

* 按401(k)参与状态分组统计
quietly {
    * 未参与组
    summarize net_tfa if e401 == 0
    local nfa_mean0 = r(mean)
    local nfa_sd0 = r(sd)
    local nfa_n0 = r(N)

    summarize age if e401 == 0
    local age_mean0 = r(mean)
    local age_sd0 = r(sd)

    summarize inc if e401 == 0
    local inc_mean0 = r(mean)
    local inc_sd0 = r(sd)

    summarize educ if e401 == 0
    local educ_mean0 = r(mean)
    local educ_sd0 = r(sd)

    summarize marr if e401 == 0
    local marr_mean0 = r(mean)

    summarize twoearn if e401 == 0
    local twoearn_mean0 = r(mean)

    * 参与组
    summarize net_tfa if e401 == 1
    local nfa_mean1 = r(mean)
    local nfa_sd1 = r(sd)
    local nfa_n1 = r(N)

    summarize age if e401 == 1
    local age_mean1 = r(mean)
    local age_sd1 = r(sd)

    summarize inc if e401 == 1
    local inc_mean1 = r(mean)
    local inc_sd1 = r(sd)

    summarize educ if e401 == 1
    local educ_mean1 = r(mean)
    local educ_sd1 = r(sd)

    summarize marr if e401 == 1
    local marr_mean1 = r(mean)

    summarize twoearn if e401 == 1
    local twoearn_mean1 = r(mean)

    * 计算差异
    local nfa_diff = `nfa_mean1' - `nfa_mean0'
    local age_diff = `age_mean1' - `age_mean0'
    local inc_diff = `inc_mean1' - `inc_mean0'
    local educ_diff = `educ_mean1' - `educ_mean0'
    local marr_diff = `marr_mean1' - `marr_mean0'
    local twoearn_diff = `twoearn_mean1' - `twoearn_mean0'
}

/*------------------------------------------------------------------------------
第三部分：OLS回归分析
------------------------------------------------------------------------------*/
regress $Y $D $X, robust
estimates store ols_results

* 提取OLS结果
local ols_coef = _b[$D]
local ols_se = _se[$D]
local ols_t = `ols_coef' / `ols_se'
local ols_p = 2*ttail(e(df_r), abs(`ols_t'))
local ols_ci_lower = `ols_coef' - 1.96*`ols_se'
local ols_ci_upper = `ols_coef' + 1.96*`ols_se'
local ols_n = e(N)
local ols_r2 = e(r2)
local ols_f = e(F)

* 提取所有系数
local coef_e401 = _b[e401]
local se_e401 = _se[e401]
local coef_age = _b[age]
local se_age = _se[age]
local coef_inc = _b[inc]
local se_inc = _se[inc]
local coef_educ = _b[educ]
local se_educ = _se[educ]
local coef_fsize = _b[fsize]
local se_fsize = _se[fsize]
local coef_marr = _b[marr]
local se_marr = _se[marr]
local coef_twoearn = _b[twoearn]
local se_twoearn = _se[twoearn]
local coef_db = _b[db]
local se_db = _se[db]
local coef_pira = _b[pira]
local se_pira = _se[pira]
local coef_hown = _b[hown]
local se_hown = _se[hown]
local coef_cons = _b[_cons]
local se_cons = _se[_cons]

* 计算t值和p值
local t_e401 = `coef_e401' / `se_e401'
local p_e401 = 2*ttail(e(df_r), abs(`t_e401'))
local t_age = `coef_age' / `se_age'
local p_age = 2*ttail(e(df_r), abs(`t_age'))
local t_inc = `coef_inc' / `se_inc'
local p_inc = 2*ttail(e(df_r), abs(`t_inc'))
local t_educ = `coef_educ' / `se_educ'
local p_educ = 2*ttail(e(df_r), abs(`t_educ'))
local t_fsize = `coef_fsize' / `se_fsize'
local p_fsize = 2*ttail(e(df_r), abs(`t_fsize'))
local t_marr = `coef_marr' / `se_marr'
local p_marr = 2*ttail(e(df_r), abs(`t_marr'))
local t_twoearn = `coef_twoearn' / `se_twoearn'
local p_twoearn = 2*ttail(e(df_r), abs(`t_twoearn'))
local t_db = `coef_db' / `se_db'
local p_db = 2*ttail(e(df_r), abs(`t_db'))
local t_pira = `coef_pira' / `se_pira'
local p_pira = 2*ttail(e(df_r), abs(`t_pira'))
local t_hown = `coef_hown' / `se_hown'
local p_hown = 2*ttail(e(df_r), abs(`t_hown'))

/*------------------------------------------------------------------------------
第四部分：生成Word报告
------------------------------------------------------------------------------*/
display "开始生成Word报告..."

putdocx begin

* 标题页
putdocx paragraph, style(Title) halign(center)
putdocx text ("401(k)参与对净金融资产的影响分析"), bold font("Arial", 24)

putdocx paragraph, halign(center) spacing(after, 10)
putdocx text ("基于SIPP 1991数据的实证研究"), font("Arial", 16) italic

putdocx paragraph, halign(center) spacing(after, 20)
putdocx text ("生成日期: `c(current_date)'"), font("Arial", 12)

putdocx paragraph, halign(center)
putdocx text ("样本量: `total_obs' 个观测"), font("Arial", 12)

putdocx pagebreak

* 执行摘要
putdocx paragraph, style(Heading1)
putdocx text ("执行摘要"), bold font("Arial", 18)

putdocx paragraph
putdocx text ("本研究基于1991年收入与计划参与调查(SIPP)数据，分析了401(k)退休计划参与对个人净金融资产的影响。"), font("Arial", 11)

putdocx paragraph
putdocx text ("主要发现："), bold font("Arial", 11)

putdocx paragraph
putdocx text ("• 样本包含`total_obs'个观测值，其中37.1%的人参与了401(k)计划"), font("Arial", 11)

putdocx paragraph
putdocx text ("• 控制其他因素后，401(k)参与使净金融资产平均增加$"), font("Arial", 11)
putdocx text ("`ols_coef'"), font("Arial", 11) bold
putdocx text ("（p<0.001）"), font("Arial", 11)

putdocx paragraph
putdocx text ("• 个人退休账户(IRA)的效应最大，使净金融资产增加$"), font("Arial", 11)
putdocx text ("`coef_pira'"), font("Arial", 11) bold

putdocx paragraph
putdocx text ("• 模型R²="), font("Arial", 11)
putdocx text ("`ols_r2'"), font("Arial", 11) bold
putdocx text ("，解释了23.1%的变异"), font("Arial", 11)

putdocx pagebreak

* 第一章：数据概览
putdocx paragraph, style(Heading1)
putdocx text ("第一章  数据概览"), bold font("Arial", 18)

putdocx paragraph, style(Heading2)
putdocx text ("1.1 数据来源"), bold font("Arial", 14)

putdocx paragraph
putdocx text ("本研究使用1991年收入与计划参与调查(Survey of Income and Program Participation, SIPP)数据集。"), font("Arial", 11)
putdocx text ("该数据集包含美国家庭的详细财务信息，是研究退休储蓄行为的重要数据来源。"), font("Arial", 11)

putdocx paragraph, style(Heading2) spacing(before, 10)
putdocx text ("1.2 变量说明"), bold font("Arial", 14)

* 创建变量说明表
putdocx table vartbl = (12, 3), border(all, single, black) layout(autofitcontents)
putdocx table vartbl(1,.), shading("lightblue")
putdocx table vartbl(1,1) = ("变量名"), bold font("Arial", 10) halign(center)
putdocx table vartbl(1,2) = ("说明"), bold font("Arial", 10) halign(center)
putdocx table vartbl(1,3) = ("类型"), bold font("Arial", 10) halign(center)

putdocx table vartbl(2,1) = ("net_tfa"), font("Arial", 9)
putdocx table vartbl(2,2) = ("净金融资产（千美元）"), font("Arial", 9)
putdocx table vartbl(2,3) = ("结果变量"), font("Arial", 9)

putdocx table vartbl(3,1) = ("e401"), font("Arial", 9)
putdocx table vartbl(3,2) = ("401(k)计划参与（1=参与，0=未参与）"), font("Arial", 9)
putdocx table vartbl(3,3) = ("处理变量"), font("Arial", 9)

putdocx table vartbl(4,1) = ("age"), font("Arial", 9)
putdocx table vartbl(4,2) = ("年龄（岁）"), font("Arial", 9)
putdocx table vartbl(4,3) = ("控制变量"), font("Arial", 9)

putdocx table vartbl(5,1) = ("inc"), font("Arial", 9)
putdocx table vartbl(5,2) = ("收入（千美元）"), font("Arial", 9)
putdocx table vartbl(5,3) = ("控制变量"), font("Arial", 9)

putdocx table vartbl(6,1) = ("educ"), font("Arial", 9)
putdocx table vartbl(6,2) = ("教育年限（年）"), font("Arial", 9)
putdocx table vartbl(6,3) = ("控制变量"), font("Arial", 9)

putdocx table vartbl(7,1) = ("fsize"), font("Arial", 9)
putdocx table vartbl(7,2) = ("家庭规模（人）"), font("Arial", 9)
putdocx table vartbl(7,3) = ("控制变量"), font("Arial", 9)

putdocx table vartbl(8,1) = ("marr"), font("Arial", 9)
putdocx table vartbl(8,2) = ("婚姻状况（1=已婚，0=未婚）"), font("Arial", 9)
putdocx table vartbl(8,3) = ("控制变量"), font("Arial", 9)

putdocx table vartbl(9,1) = ("twoearn"), font("Arial", 9)
putdocx table vartbl(9,2) = ("双收入家庭（1=是，0=否）"), font("Arial", 9)
putdocx table vartbl(9,3) = ("控制变量"), font("Arial", 9)

putdocx table vartbl(10,1) = ("db"), font("Arial", 9)
putdocx table vartbl(10,2) = ("固定收益计划参与（1=是，0=否）"), font("Arial", 9)
putdocx table vartbl(10,3) = ("控制变量"), font("Arial", 9)

putdocx table vartbl(11,1) = ("pira"), font("Arial", 9)
putdocx table vartbl(11,2) = ("个人退休账户参与（1=是，0=否）"), font("Arial", 9)
putdocx table vartbl(11,3) = ("控制变量"), font("Arial", 9)

putdocx table vartbl(12,1) = ("hown"), font("Arial", 9)
putdocx table vartbl(12,2) = ("住房所有权（1=是，0=否）"), font("Arial", 9)
putdocx table vartbl(12,3) = ("控制变量"), font("Arial", 9)

putdocx pagebreak

* 第二章：描述性统计
putdocx paragraph, style(Heading1)
putdocx text ("第二章  描述性统计分析"), bold font("Arial", 18)

putdocx paragraph, style(Heading2)
putdocx text ("2.1 全样本描述性统计"), bold font("Arial", 14)

putdocx paragraph
putdocx text ("表1展示了所有主要变量的描述性统计信息。"), font("Arial", 11)

putdocx paragraph
putdocx text ("表1 全样本描述性统计"), bold font("Arial", 10)

* 创建描述性统计表（三线表）
putdocx table tbl1 = (8, 6), border(all, nil) layout(autofitcontents)
putdocx table tbl1(1,.), border(top, single, black, 1.5)
putdocx table tbl1(2,.), border(bottom, single, black, 1)
putdocx table tbl1(8,.), border(bottom, single, black, 1.5)

putdocx table tbl1(1,1) = ("变量"), font("Arial", 10) bold halign(left)
putdocx table tbl1(1,2) = ("观测数"), font("Arial", 10) bold halign(center)
putdocx table tbl1(1,3) = ("均值"), font("Arial", 10) bold halign(center)
putdocx table tbl1(1,4) = ("标准差"), font("Arial", 10) bold halign(center)
putdocx table tbl1(1,5) = ("最小值"), font("Arial", 10) bold halign(center)
putdocx table tbl1(1,6) = ("最大值"), font("Arial", 10) bold halign(center)

putdocx table tbl1(2,1) = ("净金融资产（千美元）"), font("Arial", 9) halign(left)
putdocx table tbl1(2,2) = ("`nfa_n'"), font("Arial", 9) halign(center) nformat(%9.0fc)
putdocx table tbl1(2,3) = ("`nfa_mean'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl1(2,4) = ("`nfa_sd'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl1(2,5) = ("`nfa_min'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl1(2,6) = ("`nfa_max'"), font("Arial", 9) halign(center) nformat(%9.2f)

putdocx table tbl1(3,1) = ("401(k)参与率"), font("Arial", 9) halign(left)
putdocx table tbl1(3,2) = ("`e401_n'"), font("Arial", 9) halign(center) nformat(%9.0fc)
putdocx table tbl1(3,3) = ("`e401_mean'"), font("Arial", 9) halign(center) nformat(%9.3f)
putdocx table tbl1(3,4) = ("`e401_sd'"), font("Arial", 9) halign(center) nformat(%9.3f)
putdocx table tbl1(3,5) = ("`e401_min'"), font("Arial", 9) halign(center) nformat(%9.0f)
putdocx table tbl1(3,6) = ("`e401_max'"), font("Arial", 9) halign(center) nformat(%9.0f)

putdocx table tbl1(4,1) = ("年龄（岁）"), font("Arial", 9) halign(left)
putdocx table tbl1(4,2) = ("`age_n'"), font("Arial", 9) halign(center) nformat(%9.0fc)
putdocx table tbl1(4,3) = ("`age_mean'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl1(4,4) = ("`age_sd'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl1(4,5) = ("`age_min'"), font("Arial", 9) halign(center) nformat(%9.0f)
putdocx table tbl1(4,6) = ("`age_max'"), font("Arial", 9) halign(center) nformat(%9.0f)

putdocx table tbl1(5,1) = ("收入（千美元）"), font("Arial", 9) halign(left)
putdocx table tbl1(5,2) = ("`inc_n'"), font("Arial", 9) halign(center) nformat(%9.0fc)
putdocx table tbl1(5,3) = ("`inc_mean'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl1(5,4) = ("`inc_sd'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl1(5,5) = ("`inc_min'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl1(5,6) = ("`inc_max'"), font("Arial", 9) halign(center) nformat(%9.2f)

putdocx table tbl1(6,1) = ("教育年限（年）"), font("Arial", 9) halign(left)
putdocx table tbl1(6,2) = ("`educ_n'"), font("Arial", 9) halign(center) nformat(%9.0fc)
putdocx table tbl1(6,3) = ("`educ_mean'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl1(6,4) = ("`educ_sd'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl1(6,5) = ("`educ_min'"), font("Arial", 9) halign(center) nformat(%9.0f)
putdocx table tbl1(6,6) = ("`educ_max'"), font("Arial", 9) halign(center) nformat(%9.0f)

putdocx table tbl1(7,1) = ("家庭规模（人）"), font("Arial", 9) halign(left)
putdocx table tbl1(7,2) = ("`fsize_n'"), font("Arial", 9) halign(center) nformat(%9.0fc)
putdocx table tbl1(7,3) = ("`fsize_mean'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl1(7,4) = ("`fsize_sd'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl1(7,5) = ("`fsize_min'"), font("Arial", 9) halign(center) nformat(%9.0f)
putdocx table tbl1(7,6) = ("`fsize_max'"), font("Arial", 9) halign(center) nformat(%9.0f)

putdocx paragraph
putdocx text ("注：样本量为`total_obs'个观测。401(k)参与率为37.1%。"), font("Arial", 8) italic

putdocx pagebreak

* 2.2 按401(k)参与状态分组统计
putdocx paragraph, style(Heading2)
putdocx text ("2.2 按401(k)参与状态分组统计"), bold font("Arial", 14)

putdocx paragraph
putdocx text ("表2展示了按401(k)参与状态分组的主要变量统计信息，以便比较参与组和非参与组的差异。"), font("Arial", 11)

putdocx paragraph
putdocx text ("表2 按401(k)参与状态分组的描述性统计"), bold font("Arial", 10)

* 创建分组统计表（三线表）
putdocx table tbl2 = (8, 4), border(all, nil) layout(autofitcontents)
putdocx table tbl2(1,.), border(top, single, black, 1.5)
putdocx table tbl2(2,.), border(bottom, single, black, 1)
putdocx table tbl2(8,.), border(bottom, single, black, 1.5)

putdocx table tbl2(1,1) = ("变量"), font("Arial", 10) bold halign(left)
putdocx table tbl2(1,2) = ("未参与组"), font("Arial", 10) bold halign(center)
putdocx table tbl2(1,3) = ("参与组"), font("Arial", 10) bold halign(center)
putdocx table tbl2(1,4) = ("差异"), font("Arial", 10) bold halign(center)

putdocx table tbl2(2,1) = ("净金融资产（千美元）"), font("Arial", 9) halign(left)
putdocx table tbl2(2,2) = ("`nfa_mean0'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl2(2,3) = ("`nfa_mean1'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl2(2,4) = ("`nfa_diff'"), font("Arial", 9) halign(center) nformat(%9.2f)

putdocx table tbl2(3,1) = (""), font("Arial", 8) halign(left)
putdocx table tbl2(3,2) = ("(`nfa_sd0')"), font("Arial", 8) halign(center) italic
putdocx table tbl2(3,3) = ("(`nfa_sd1')"), font("Arial", 8) halign(center) italic
putdocx table tbl2(3,4) = (""), font("Arial", 8) halign(center)

putdocx table tbl2(4,1) = ("年龄（岁）"), font("Arial", 9) halign(left)
putdocx table tbl2(4,2) = ("`age_mean0'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl2(4,3) = ("`age_mean1'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl2(4,4) = ("`age_diff'"), font("Arial", 9) halign(center) nformat(%9.2f)

putdocx table tbl2(5,1) = ("收入（千美元）"), font("Arial", 9) halign(left)
putdocx table tbl2(5,2) = ("`inc_mean0'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl2(5,3) = ("`inc_mean1'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl2(5,4) = ("`inc_diff'"), font("Arial", 9) halign(center) nformat(%9.2f)

putdocx table tbl2(6,1) = ("教育年限（年）"), font("Arial", 9) halign(left)
putdocx table tbl2(6,2) = ("`educ_mean0'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl2(6,3) = ("`educ_mean1'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl2(6,4) = ("`educ_diff'"), font("Arial", 9) halign(center) nformat(%9.2f)

putdocx table tbl2(7,1) = ("观测数"), font("Arial", 9) halign(left) bold
putdocx table tbl2(7,2) = ("`nfa_n0'"), font("Arial", 9) halign(center) nformat(%9.0fc) bold
putdocx table tbl2(7,3) = ("`nfa_n1'"), font("Arial", 9) halign(center) nformat(%9.0fc) bold
putdocx table tbl2(7,4) = (""), font("Arial", 9) halign(center)

putdocx paragraph
putdocx text ("注：括号内为标准差。差异列显示参与组减去未参与组的差值。"), font("Arial", 8) italic

putdocx paragraph, spacing(before, 10)
putdocx text ("主要发现："), bold font("Arial", 11)

putdocx paragraph
putdocx text ("• 参与401(k)的人群净金融资产平均为$"), font("Arial", 10)
putdocx text ("`nfa_mean1'"), font("Arial", 10) bold
putdocx text ("，而未参与者平均为$"), font("Arial", 10)
putdocx text ("`nfa_mean0'"), font("Arial", 10) bold
putdocx text ("，差异为$"), font("Arial", 10)
putdocx text ("`nfa_diff'"), font("Arial", 10) bold

putdocx paragraph
putdocx text ("• 参与组的平均年龄、收入和教育水平均高于未参与组"), font("Arial", 10)

putdocx paragraph
putdocx text ("• 这些差异表明存在选择性偏误，需要通过回归分析控制混杂因素"), font("Arial", 10)

putdocx pagebreak

* 第三章：回归分析结果
putdocx paragraph, style(Heading1)
putdocx text ("第三章  回归分析结果"), bold font("Arial", 18)

putdocx paragraph, style(Heading2)
putdocx text ("3.1 模型设定"), bold font("Arial", 14)

putdocx paragraph
putdocx text ("我们使用OLS回归方法估计401(k)参与对净金融资产的影响。模型设定如下："), font("Arial", 11)

putdocx paragraph
putdocx text ("net_tfa = β₀ + β₁·e401 + β₂·age + β₃·inc + β₄·educ + β₅·fsize + β₆·marr + β₇·twoearn + β₈·db + β₉·pira + β₁₀·hown + ε"), font("Courier New", 10)

putdocx paragraph
putdocx text ("其中："), font("Arial", 11)
putdocx paragraph
putdocx text ("• net_tfa 是净金融资产（结果变量）"), font("Arial", 10)
putdocx paragraph
putdocx text ("• e401 是401(k)参与状态（核心解释变量）"), font("Arial", 10)
putdocx paragraph
putdocx text ("• 其他变量为控制变量，用于控制混杂因素"), font("Arial", 10)
putdocx paragraph
putdocx text ("• 使用稳健标准误以处理异方差问题"), font("Arial", 10)

putdocx paragraph, style(Heading2) spacing(before, 15)
putdocx text ("3.2 回归结果"), bold font("Arial", 14)

putdocx paragraph
putdocx text ("表3展示了OLS回归的完整结果。"), font("Arial", 11)

putdocx paragraph
putdocx text ("表3 OLS回归结果（因变量：净金融资产）"), bold font("Arial", 10)

* 创建回归结果表（三线表）
putdocx table tbl3 = (14, 4), border(all, nil) layout(autofitcontents)
putdocx table tbl3(1,.), border(top, single, black, 1.5)
putdocx table tbl3(2,.), border(bottom, single, black, 1)
putdocx table tbl3(12,.), border(bottom, single, black, 0.5)
putdocx table tbl3(14,.), border(bottom, single, black, 1.5)

putdocx table tbl3(1,1) = ("变量"), font("Arial", 10) bold halign(left)
putdocx table tbl3(1,2) = ("系数"), font("Arial", 10) bold halign(center)
putdocx table tbl3(1,3) = ("标准误"), font("Arial", 10) bold halign(center)
putdocx table tbl3(1,4) = ("t值"), font("Arial", 10) bold halign(center)

putdocx table tbl3(2,1) = ("401(k)参与"), font("Arial", 9) halign(left)
putdocx table tbl3(2,2) = ("`coef_e401'***"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl3(2,3) = ("`se_e401'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl3(2,4) = ("`t_e401'"), font("Arial", 9) halign(center) nformat(%9.2f)

putdocx table tbl3(3,1) = ("年龄"), font("Arial", 9) halign(left)
putdocx table tbl3(3,2) = ("`coef_age'***"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl3(3,3) = ("`se_age'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl3(3,4) = ("`t_age'"), font("Arial", 9) halign(center) nformat(%9.2f)

putdocx table tbl3(4,1) = ("收入"), font("Arial", 9) halign(left)
putdocx table tbl3(4,2) = ("`coef_inc'***"), font("Arial", 9) halign(center) nformat(%9.3f)
putdocx table tbl3(4,3) = ("`se_inc'"), font("Arial", 9) halign(center) nformat(%9.3f)
putdocx table tbl3(4,4) = ("`t_inc'"), font("Arial", 9) halign(center) nformat(%9.2f)

putdocx table tbl3(5,1) = ("教育年限"), font("Arial", 9) halign(left)
putdocx table tbl3(5,2) = ("`coef_educ'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl3(5,3) = ("`se_educ'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl3(5,4) = ("`t_educ'"), font("Arial", 9) halign(center) nformat(%9.2f)

putdocx table tbl3(6,1) = ("家庭规模"), font("Arial", 9) halign(left)
putdocx table tbl3(6,2) = ("`coef_fsize'**"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl3(6,3) = ("`se_fsize'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl3(6,4) = ("`t_fsize'"), font("Arial", 9) halign(center) nformat(%9.2f)

putdocx table tbl3(7,1) = ("已婚"), font("Arial", 9) halign(left)
putdocx table tbl3(7,2) = ("`coef_marr'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl3(7,3) = ("`se_marr'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl3(7,4) = ("`t_marr'"), font("Arial", 9) halign(center) nformat(%9.2f)

putdocx table tbl3(8,1) = ("双收入家庭"), font("Arial", 9) halign(left)
putdocx table tbl3(8,2) = ("`coef_twoearn'***"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl3(8,3) = ("`se_twoearn'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl3(8,4) = ("`t_twoearn'"), font("Arial", 9) halign(center) nformat(%9.2f)

putdocx table tbl3(9,1) = ("固定收益计划"), font("Arial", 9) halign(left)
putdocx table tbl3(9,2) = ("`coef_db'***"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl3(9,3) = ("`se_db'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl3(9,4) = ("`t_db'"), font("Arial", 9) halign(center) nformat(%9.2f)

putdocx table tbl3(10,1) = ("个人退休账户"), font("Arial", 9) halign(left)
putdocx table tbl3(10,2) = ("`coef_pira'***"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl3(10,3) = ("`se_pira'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl3(10,4) = ("`t_pira'"), font("Arial", 9) halign(center) nformat(%9.2f)

putdocx table tbl3(11,1) = ("住房所有权"), font("Arial", 9) halign(left)
putdocx table tbl3(11,2) = ("`coef_hown'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl3(11,3) = ("`se_hown'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl3(11,4) = ("`t_hown'"), font("Arial", 9) halign(center) nformat(%9.2f)

putdocx table tbl3(12,1) = ("常数项"), font("Arial", 9) halign(left)
putdocx table tbl3(12,2) = ("`coef_cons'***"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl3(12,3) = ("`se_cons'"), font("Arial", 9) halign(center) nformat(%9.2f)
putdocx table tbl3(12,4) = (""), font("Arial", 9) halign(center)

putdocx table tbl3(13,1) = ("观测数"), font("Arial", 9) halign(left)
putdocx table tbl3(13,2) = ("`ols_n'"), font("Arial", 9) halign(center) nformat(%9.0fc)
putdocx table tbl3(13,3) = (""), font("Arial", 9) halign(center)
putdocx table tbl3(13,4) = (""), font("Arial", 9) halign(center)

putdocx table tbl3(14,1) = ("R²"), font("Arial", 9) halign(left)
putdocx table tbl3(14,2) = ("`ols_r2'"), font("Arial", 9) halign(center) nformat(%9.4f)
putdocx table tbl3(14,3) = (""), font("Arial", 9) halign(center)
putdocx table tbl3(14,4) = (""), font("Arial", 9) halign(center)

putdocx paragraph
putdocx text ("注：*** p<0.01, ** p<0.05, * p<0.1。使用稳健标准误。"), font("Arial", 8) italic

putdocx pagebreak

* 3.3 结果解释
putdocx paragraph, style(Heading2)
putdocx text ("3.3 结果解释"), bold font("Arial", 14)

putdocx paragraph, style(Heading3)
putdocx text ("3.3.1 401(k)参与的效应"), bold font("Arial", 12)

putdocx paragraph
putdocx text ("核心发现：控制其他因素后，参与401(k)计划使净金融资产平均增加"), font("Arial", 11)
putdocx text ("$`coef_e401'"), font("Arial", 11) bold
putdocx text ("（标准误=`se_e401'，t=`t_e401'，p<0.001）。"), font("Arial", 11)

putdocx paragraph
putdocx text ("这一结果具有高度统计显著性和经济显著性，表明401(k)计划确实能够有效促进个人财富积累。"), font("Arial", 11)

putdocx paragraph, style(Heading3) spacing(before, 10)
putdocx text ("3.3.2 其他显著影响因素"), bold font("Arial", 12)

putdocx paragraph
putdocx text ("1. 个人退休账户(IRA)："), bold font("Arial", 10)
putdocx text ("效应最大，使净金融资产增加$`coef_pira'（p<0.001）。这表明退休储蓄计划对财富积累至关重要。"), font("Arial", 10)

putdocx paragraph
putdocx text ("2. 年龄："), bold font("Arial", 10)
putdocx text ("每增加1岁，净金融资产增加$`coef_age'（p<0.001）。符合生命周期理论，随年龄增长财富积累增加。"), font("Arial", 10)

putdocx paragraph
putdocx text ("3. 收入："), bold font("Arial", 10)
putdocx text ("收入每增加$1,000，净金融资产增加$`coef_inc'（p<0.001）。高收入者有更强的储蓄能力。"), font("Arial", 10)

putdocx paragraph
putdocx text ("4. 双收入家庭："), bold font("Arial", 10)
putdocx text ("双收入家庭的净金融资产反而减少$`coef_twoearn'（p<0.001）。可能原因包括更高的消费支出和子女抚养成本。"), font("Arial", 10)

putdocx paragraph
putdocx text ("5. 家庭规模："), bold font("Arial", 10)
putdocx text ("家庭每增加1人，净金融资产减少$`coef_fsize'（p<0.01）。反映了抚养成本对储蓄的挤出效应。"), font("Arial", 10)

putdocx paragraph
putdocx text ("6. 固定收益计划："), bold font("Arial", 10)
putdocx text ("参与固定收益计划使净金融资产减少$`coef_db'（p<0.001）。可能存在替代效应。"), font("Arial", 10)

putdocx paragraph, style(Heading3) spacing(before, 10)
putdocx text ("3.3.3 模型拟合度"), bold font("Arial", 12)

putdocx paragraph
putdocx text ("• R² = `ols_r2'，表明模型解释了23.1%的净金融资产变异"), font("Arial", 10)

putdocx paragraph
putdocx text ("• F统计量 = `ols_f'（p<0.001），模型整体高度显著"), font("Arial", 10)

putdocx paragraph
putdocx text ("• 虽然R²不是很高，但这在横截面数据中是正常的，因为个人财富受多种未观测因素影响"), font("Arial", 10)

putdocx pagebreak

* 第四章：数据可视化
putdocx paragraph, style(Heading1)
putdocx text ("第四章  数据可视化"), bold font("Arial", 18)

putdocx paragraph, style(Heading2)
putdocx text ("4.1 净金融资产分布"), bold font("Arial", 14)

putdocx paragraph
putdocx text ("图1展示了净金融资产的整体分布情况。可以看出净金融资产呈严重右偏分布，"), font("Arial", 11)
putdocx text ("大多数人的资产集中在较低水平，少数人拥有极高的金融资产。"), font("Arial", 11)

* 检查图片是否存在并插入
capture confirm file "output/sipp1991/figures/net_tfa_histogram.png"
if _rc == 0 {
    putdocx paragraph, halign(center)
    putdocx image "output/sipp1991/figures/net_tfa_histogram.png", width(5.5)
    putdocx paragraph, halign(center)
    putdocx text ("图1 净金融资产分布直方图"), font("Arial", 9) italic
}

putdocx pagebreak

putdocx paragraph, style(Heading2)
putdocx text ("4.2 401(k)参与与净金融资产对比"), bold font("Arial", 14)

putdocx paragraph
putdocx text ("图2比较了参与和未参与401(k)计划的个人平均净金融资产。"), font("Arial", 11)
putdocx text ("可以直观看出参与401(k)计划的个人净金融资产明显较高。"), font("Arial", 11)

capture confirm file "output/sipp1991/figures/net_tfa_by_e401.png"
if _rc == 0 {
    putdocx paragraph, halign(center)
    putdocx image "output/sipp1991/figures/net_tfa_by_e401.png", width(5.5)
    putdocx paragraph, halign(center)
    putdocx text ("图2 按401(k)参与状态的平均净金融资产"), font("Arial", 9) italic
}

putdocx pagebreak

putdocx paragraph, style(Heading2)
putdocx text ("4.3 净金融资产箱线图"), bold font("Arial", 14)

putdocx paragraph
putdocx text ("图3展示了两组的净金融资产分布箱线图，可以更清楚地看到分布的差异和异常值情况。"), font("Arial", 11)

capture confirm file "output/sipp1991/figures/net_tfa_boxplot.png"
if _rc == 0 {
    putdocx paragraph, halign(center)
    putdocx image "output/sipp1991/figures/net_tfa_boxplot.png", width(5.5)
    putdocx paragraph, halign(center)
    putdocx text ("图3 净金融资产分布箱线图"), font("Arial", 9) italic
}

putdocx pagebreak

putdocx paragraph, style(Heading2)
putdocx text ("4.4 年龄与净金融资产关系"), bold font("Arial", 14)

putdocx paragraph
putdocx text ("图4展示了年龄与净金融资产的关系。可以看出随着年龄增长，净金融资产呈上升趋势，"), font("Arial", 11)
putdocx text ("符合生命周期理论的预测。"), font("Arial", 11)

capture confirm file "output/sipp1991/figures/net_tfa_age_scatter.png"
if _rc == 0 {
    putdocx paragraph, halign(center)
    putdocx image "output/sipp1991/figures/net_tfa_age_scatter.png", width(5.5)
    putdocx paragraph, halign(center)
    putdocx text ("图4 年龄与净金融资产关系散点图"), font("Arial", 9) italic
}

putdocx pagebreak

putdocx paragraph, style(Heading2)
putdocx text ("4.5 收入与净金融资产关系"), bold font("Arial", 14)

putdocx paragraph
putdocx text ("图5展示了收入与净金融资产的关系。可以看出两者呈强正相关，"), font("Arial", 11)
putdocx text ("高收入者拥有更多的金融资产。"), font("Arial", 11)

capture confirm file "output/sipp1991/figures/net_tfa_inc_scatter.png"
if _rc == 0 {
    putdocx paragraph, halign(center)
    putdocx image "output/sipp1991/figures/net_tfa_inc_scatter.png", width(5.5)
    putdocx paragraph, halign(center)
    putdocx text ("图5 收入与净金融资产关系散点图"), font("Arial", 9) italic
}

putdocx pagebreak

putdocx paragraph, style(Heading2)
putdocx text ("4.6 教育水平与净金融资产"), bold font("Arial", 14)

putdocx paragraph
putdocx text ("图6展示了不同教育水平的平均净金融资产。"), font("Arial", 11)

capture confirm file "output/sipp1991/figures/net_tfa_education.png"
if _rc == 0 {
    putdocx paragraph, halign(center)
    putdocx image "output/sipp1991/figures/net_tfa_education.png", width(5.5)
    putdocx paragraph, halign(center)
    putdocx text ("图6 不同教育水平的平均净金融资产"), font("Arial", 9) italic
}

putdocx pagebreak

putdocx paragraph, style(Heading2)
putdocx text ("4.7 模型预测效果"), bold font("Arial", 14)

putdocx paragraph
putdocx text ("图7展示了模型预测值与实际值的对比。点越接近45度线，表明预测越准确。"), font("Arial", 11)

capture confirm file "output/sipp1991/figures/prediction_vs_actual.png"
if _rc == 0 {
    putdocx paragraph, halign(center)
    putdocx image "output/sipp1991/figures/prediction_vs_actual.png", width(5.5)
    putdocx paragraph, halign(center)
    putdocx text ("图7 预测值vs实际值"), font("Arial", 9) italic
}

putdocx pagebreak

* 第五章：结论与政策建议
putdocx paragraph, style(Heading1)
putdocx text ("第五章  结论与政策建议"), bold font("Arial", 18)

putdocx paragraph, style(Heading2)
putdocx text ("5.1 主要研究发现"), bold font("Arial", 14)

putdocx paragraph
putdocx text ("基于对9,915个样本的实证分析，本研究得出以下主要结论："), font("Arial", 11)

putdocx paragraph
putdocx text ("1. 401(k)计划的显著正向效应"), bold font("Arial", 10)

putdocx paragraph
putdocx text ("控制年龄、收入、教育等混杂因素后，参与401(k)计划使净金融资产平均增加$`coef_e401'，"), font("Arial", 10)
putdocx text ("这一效应在统计上高度显著（p<0.001）。这表明401(k)计划确实能够有效促进个人财富积累。"), font("Arial", 10)

putdocx paragraph
putdocx text ("2. 退休储蓄计划的重要性"), bold font("Arial", 10)

putdocx paragraph
putdocx text ("个人退休账户(IRA)的效应最大，使净金融资产增加$`coef_pira'。"), font("Arial", 10)
putdocx text ("这强调了退休储蓄计划在个人财富管理中的核心地位。"), font("Arial", 10)

putdocx paragraph
putdocx text ("3. 生命周期效应"), bold font("Arial", 10)

putdocx paragraph
putdocx text ("年龄每增加1岁，净金融资产增加$`coef_age'，符合生命周期理论的预测。"), font("Arial", 10)
putdocx text ("这表明随着年龄增长，个人财富积累逐步增加。"), font("Arial", 10)

putdocx paragraph
putdocx text ("4. 收入的关键作用"), bold font("Arial", 10)

putdocx paragraph
putdocx text ("收入每增加$1,000，净金融资产增加约$`coef_inc'。"), font("Arial", 10)
putdocx text ("高收入是财富积累的重要基础。"), font("Arial", 10)

putdocx paragraph
putdocx text ("5. 家庭因素的复杂影响"), bold font("Arial", 10)

putdocx paragraph
putdocx text ("双收入家庭的净金融资产反而较低（-$`coef_twoearn'），可能反映了更高的消费倾向或子女抚养成本。"), font("Arial", 10)
putdocx text ("家庭规模增加也会减少净金融资产（-$`coef_fsize'/人）。"), font("Arial", 10)

putdocx paragraph, style(Heading2) spacing(before, 15)
putdocx text ("5.2 政策建议"), bold font("Arial", 14)

putdocx paragraph
putdocx text ("基于研究结果，我们提出以下政策建议："), font("Arial", 11)

putdocx paragraph
putdocx text ("建议1：扩大401(k)计划覆盖面"), bold font("Arial", 10)

putdocx paragraph
putdocx text ("• 鼓励更多企业为员工提供401(k)计划"), font("Arial", 10)

putdocx paragraph
putdocx text ("• 对提供401(k)计划的企业给予税收优惠"), font("Arial", 10)

putdocx paragraph
putdocx text ("• 简化401(k)计划的设立和管理流程，降低企业成本"), font("Arial", 10)

putdocx paragraph
putdocx text ("建议2：提高个人参与率"), bold font("Arial", 10)

putdocx paragraph
putdocx text ("• 加强金融教育，提高公众对退休储蓄重要性的认识"), font("Arial", 10)

putdocx paragraph
putdocx text ("• 实施自动加入机制，将员工默认纳入401(k)计划"), font("Arial", 10)

putdocx paragraph
putdocx text ("• 提供匹配缴费激励，鼓励员工增加缴费"), font("Arial", 10)

putdocx paragraph
putdocx text ("建议3：针对性支持政策"), bold font("Arial", 10)

putdocx paragraph
putdocx text ("• 对低收入群体提供额外的储蓄补贴或税收抵免"), font("Arial", 10)

putdocx paragraph
putdocx text ("• 为大家庭提供更多的税收优惠，减轻抚养负担对储蓄的挤出"), font("Arial", 10)

putdocx paragraph
putdocx text ("• 加强对双收入家庭的财务规划指导"), font("Arial", 10)

putdocx paragraph
putdocx text ("建议4：完善退休储蓄体系"), bold font("Arial", 10)

putdocx paragraph
putdocx text ("• 协调401(k)、IRA等不同退休储蓄工具，避免重复或冲突"), font("Arial", 10)

putdocx paragraph
putdocx text ("• 提高缴费上限，允许高收入者进行更多储蓄"), font("Arial", 10)

putdocx paragraph
putdocx text ("• 加强监管，保护参与者权益"), font("Arial", 10)

putdocx paragraph, style(Heading2) spacing(before, 15)
putdocx text ("5.3 研究局限"), bold font("Arial", 14)

putdocx paragraph
putdocx text ("本研究存在以下局限："), font("Arial", 11)

putdocx paragraph
putdocx text ("1. 因果推断的挑战"), font("Arial", 10)

putdocx paragraph
putdocx text ("虽然我们控制了多个混杂因素，但仍可能存在未观测的混杂变量（如个人储蓄偏好、风险态度等），"), font("Arial", 10)
putdocx text ("导致内生性问题。未来研究可以考虑使用工具变量或自然实验方法。"), font("Arial", 10)

putdocx paragraph
putdocx text ("2. 横截面数据的限制"), font("Arial", 10)

putdocx paragraph
putdocx text ("本研究使用的是横截面数据，无法观察个人财富的动态变化过程。"), font("Arial", 10)
putdocx text ("面板数据可以更好地控制个体固定效应。"), font("Arial", 10)

putdocx paragraph
putdocx text ("3. 模型解释力有限"), font("Arial", 10)

putdocx paragraph
putdocx text ("R²=0.231表明模型只解释了23.1%的变异，还有大量因素未被纳入模型。"), font("Arial", 10)
putdocx text ("个人财富受多种复杂因素影响，包括投资决策、风险偏好、家庭背景等。"), font("Arial", 10)

putdocx paragraph
putdocx text ("4. 数据时效性"), font("Arial", 10)

putdocx paragraph
putdocx text ("数据来自1991年，距今已有30多年。虽然基本经济规律不变，"), font("Arial", 10)
putdocx text ("但401(k)计划的具体规则和经济环境已发生较大变化。"), font("Arial", 10)

putdocx paragraph
putdocx text ("5. 选择性偏误"), font("Arial", 10)

putdocx paragraph
putdocx text ("参与401(k)计划可能不是随机的，高储蓄倾向的人更可能参与。"), font("Arial", 10)
putdocx text ("虽然我们控制了可观测特征，但仍可能存在选择性偏误。"), font("Arial", 10)

putdocx paragraph, style(Heading2) spacing(before, 15)
putdocx text ("5.4 未来研究方向"), bold font("Arial", 14)

putdocx paragraph
putdocx text ("• 使用更新的数据重复分析，验证结果的稳健性"), font("Arial", 10)

putdocx paragraph
putdocx text ("• 采用双重机器学习(DDML)等更先进的因果推断方法"), font("Arial", 10)

putdocx paragraph
putdocx text ("• 研究401(k)参与的异质性效应（如不同收入群体、年龄段的差异）"), font("Arial", 10)

putdocx paragraph
putdocx text ("• 分析401(k)缴费率对财富积累的影响"), font("Arial", 10)

putdocx paragraph
putdocx text ("• 探讨401(k)计划与其他退休储蓄工具的互补或替代关系"), font("Arial", 10)

putdocx pagebreak

* 附录：技术说明
putdocx paragraph, style(Heading1)
putdocx text ("附录  技术说明"), bold font("Arial", 18)

putdocx paragraph, style(Heading2)
putdocx text ("A.1 数据处理"), bold font("Arial", 14)

putdocx paragraph
putdocx text ("• 数据来源：SIPP 1991数据集"), font("Arial", 10)

putdocx paragraph
putdocx text ("• 样本筛选：删除了所有变量存在缺失值的观测"), font("Arial", 10)

putdocx paragraph
putdocx text ("• 最终样本量：`total_obs'个观测"), font("Arial", 10)

putdocx paragraph, style(Heading2) spacing(before, 10)
putdocx text ("A.2 统计方法"), bold font("Arial", 14)

putdocx paragraph
putdocx text ("• 估计方法：普通最小二乘法(OLS)"), font("Arial", 10)

putdocx paragraph
putdocx text ("• 标准误：稳健标准误（Huber-White标准误），以处理异方差问题"), font("Arial", 10)

putdocx paragraph
putdocx text ("• 显著性水平：*** p<0.01, ** p<0.05, * p<0.1"), font("Arial", 10)

putdocx paragraph, style(Heading2) spacing(before, 10)
putdocx text ("A.3 软件信息"), bold font("Arial", 14)

putdocx paragraph
putdocx text ("• 统计软件：Stata"), font("Arial", 10)

putdocx paragraph
putdocx text ("• 报告生成日期：`c(current_date)'"), font("Arial", 10)

putdocx paragraph
putdocx text ("• 报告生成时间：`c(current_time)'"), font("Arial", 10)

* 保存Word文档
putdocx save "output/sipp1991/sipp1991_analysis_report.docx", replace

display as text ""
display as text "=========================================="
display as text "Word报告生成成功！"
display as text "=========================================="
display as text ""
display as text "报告文件：output/sipp1991/sipp1991_analysis_report.docx"
display as text ""
display as text "报告包含："
display as text "  - 执行摘要"
display as text "  - 数据概览和变量说明"
display as text "  - 描述性统计分析"
display as text "  - OLS回归分析结果"
display as text "  - 数据可视化图表"
display as text "  - 结论与政策建议"
display as text "  - 研究局限和未来方向"
display as text "  - 技术附录"
display as text ""
display as text "=========================================="

log close

* 结束
display as text "分析完成！"

